import request from '@/utils/request'

export function getActivityDetail_F(){
  return request({
    url: '/api/first/detail',
    method: 'get',
   
  })
}
export function getActivityDetail_S(){
  return request({
    url: '/api/secondary/detail',
    method: 'get',
   
  })
}
export function getActivityDetail_T(){
  return request({
    url: '/api/third/detail',
    method: 'get',
   
  })
}

// 获取一级评审作品列表
export function getWorksList (params) {
    return request({
      url: '/api/first/list',
      method: 'get',
      params: params
    })
  }
 //一级作品评审
  export function getFirstEdit(data) {
    return request({
      url: '/api/first/edit',
      method: 'post',
      data
    })
  }
  // 一级作品状态
  export function getWorksFirstStatus(params) {
    return request({
      url: '/api/first/status',
      method: 'get',
      params: params
    })
  }

  // 二级评审作品列表
export function getWorksListSec (params) {
  return request({
    url: '/api/secondary/list',
    method: 'get',
    params: params
  })
}
//二级作品评审
export function getEditSec(data) {
  return request({
    url: '/api/secondary/edit',
    method: 'post',
    data
  })
}
// 二级作品状态
export function getWorksStatusSec(params) {
  return request({
    url: '/api/secondary/status',
    method: 'get',
    params: params
  })
}

  // 三级评审作品列表
  export function getWorksListThird (params) {
    return request({
      url: '/api/third/list',
      method: 'get',
      params: params
    })
  }
  //三级作品评审
  export function getEditThird(data) {
    return request({
      url: '/api/third/edit',
      method: 'post',
      data,
      headers: {
        'Content-Type': 'multipart/form-data'
    }
    })
  }
  // 三级作品状态
  export function getWorksStatusThird(params) {
    return request({
      url: '/api/third/status',
      method: 'get',
      params: params
    })
  }
  // 维度信息
  export function getWorksDimension(params) {
    return request({
      url: '/api/third/dimension',
      method: 'get',
      params: params
    })
  }
  // 设置星级
  export function getCollect(params) {
    return request({
      url: '/api/third/collect',
      method: 'get',
      params: params
    })
  }
  // 登录banner
  export function getBanner(params) {
    return request({
      url: '/api/login/banner',
      method: 'get',
      params: params
    })
  }